package threads;

class Greetings implements Runnable{
    private String s;
    private int num;

    public Greetings(String s, int num ){
        this.s=s;
        this.num=num;
    }

    public void run(){
        for (int i=0;i<=num;i++){
            System.out.print(" "+s);
        }
    }
}
